]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Export notification source classes
authorAndy Holmes <andrew.g.r.holmes@gmail.com>
Mon, 7 Aug 2023 18:48:45 +0000 (11:48 -0700)
committerMarge Bot <marge-bot@gnome.org>
Thu, 10 Aug 2023 13:33:13 +0000 (13:33 +0000)
Out of the members of the notification daemon(s), these are the most
necessary and flexible to override. The daemons are used as singletons
and notifications are rather temporary, while the sources are more
flexible and make the most sense to override (and revert).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2869>

js/ui/notificationDaemon.js

index 31a871d045165566f93e5e3193c8715ad7310407..a11e087f70a2ac7027f475d5b76d5869e0a5bae8 100644 (file)
@@ -343,7 +343,7 @@ class FdoNotificationDaemon {
     }
 }
 
-const FdoNotificationDaemonSource = GObject.registerClass(
+export const FdoNotificationDaemonSource = GObject.registerClass(
 class FdoNotificationDaemonSource extends MessageTray.Source {
     _init(title, pid, sender, appId) {
         this.pid = pid;
@@ -560,7 +560,7 @@ function getPlatformData() {
 
 function InvalidAppError() {}
 
-const GtkNotificationDaemonAppSource = GObject.registerClass(
+export const GtkNotificationDaemonAppSource = GObject.registerClass(
 class GtkNotificationDaemonAppSource extends MessageTray.Source {
     _init(appId) {
         let objectPath = objectPathFromAppId(appId);